package com.wfs.suanfa.jvm;

import java.lang.instrument.Instrumentation;
import java.util.Objects;

/**
 * @author: wfs
 * @Date: 2020/11/23 21:34
 * @Description:
 *
 * 在 src创建 META-INF  MANIFEST.MF
 * Manifest-Version: 1.0
 * Created-By: mashibing. com
 * Premain-Class: com.wfs.suanfa.jvm.ObjectSizeAgent
 */
/*public class ObjectSizeAgent {
    private static Instrumentation inst;

    public static void premain(String agentArgs,Instrumentation _inst){
        inst=_inst;
    }
    public static long siteOf(Object o){
        return inst.getObjectSize(o);
    }
}*/
